package com.zlx.guguanjia.controller;

import com.zlx.guguanjia.entity.Result;
import com.zlx.guguanjia.service.ExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @Author 周罗校
 * @Description
 * @ClassName ExamineController
 * @date 2020.10.27 15:41:12
 * 该版权归周罗校所有，最终解释权以官方为准
 */

@RestController
@RequestMapping("/manager/examine/")
public class ExamineController {
    @Autowired
    private ExamineService service;

    @GetMapping("selectPage/{start}/{pageSize}")
    public Result selectPage(@PathVariable("start") int start,@PathVariable("pageSize") int pageSize,@RequestParam Map<String,Object> condition){
        return new Result(service.selectPage(start,pageSize,condition));
    }
}
